/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sandbox.org.wads.lib.xpdl;

/**
 *
 * @author Nattasan Wang-Aphisit
 */

public class WADSXPDLElement implements Cloneable {
  private WADSXPDLElement parent;
  protected boolean isRequired;
  private String name;
  private int sequence = -1;
  
  public WADSXPDLElement(WADSXPDLElement parent, boolean isRequired) {
    this.parent = parent;
    this.isRequired = isRequired;
  }
  
  public WADSXPDLElement(WADSXPDLElement parent, String name, boolean isRequired) {
    this.parent = parent;
    this.isRequired = isRequired;
    this.name = name;
  }

  public WADSXPDLElement getParent() {
    return parent;
  }

  public void setParent(WADSXPDLElement parent) {
    this.parent = parent;
  }

  public String getName() {
    return name;
  }

  public int getSequence() {
    return sequence;
  }

  public void setSequence(int sequence) {
    this.sequence = sequence;
  }

}
